﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace SampleApplication.Models
{
    public class Person
    {
        public long PersonID { get; set; }

        [Required(ErrorMessage = "名前を入力してください")]
        [StringLength(255, ErrorMessage = "名前は255文字以下で入力してください")]
        public string Name { get; set; }

        [Required(ErrorMessage = "生年月日を入力してください")]
        public DateTime? Birthday { get; set; }
    }
}
